package org.hi.orders.service.impl;

import java.util.List;

import org.hi.framework.paging.PageInfo;
import org.hi.orders.model.Passenger;
import org.hi.framework.service.impl.ManagerImpl;
import org.hi.orders.service.PassengerManager;

public class PassengerManagerImpl extends ManagerImpl implements PassengerManager{
    
    protected void preSaveObject(Object obj) {
        super.preSaveObject(obj);

    }

    protected void postSaveObject(Object obj) {
        super.postSaveObject(obj);

    }

    protected void preRemoveObject(Object obj) {
        super.preRemoveObject(obj);
        
    }

    protected void postRemoveObject(Object obj) {
        super.postRemoveObject(obj);
        
    }
    
    public void savePassenger(Passenger passenger){
    	saveObject(passenger);
    
    }

    public void removePassengerById(Integer id){
    	removeObjectById(id);
    	
    }

    public Passenger getPassengerById(Integer id){
   		return (Passenger) getObjectById(id);
    }

    public List<Passenger> getPassengerList(PageInfo pageInfo){
    	return super.getList(pageInfo);
    }

    public void saveSecurityPassenger(Passenger passenger){
    	saveObject(passenger);
    
    }

    public void removeSecurityPassengerById(Integer id){
    	removeObjectById(id);
    	
    }

    public Passenger getSecurityPassengerById(Integer id){
   		return (Passenger) getObjectById(id);
    }

    public List<Passenger> getSecurityPassengerList(PageInfo pageInfo){
    	return super.getList(pageInfo);
    }    
}
